import $http from '../request';
const URL_PREFIX = "/feature/field"

export const $FeatureFiledApi = {

	/**
	 * 批量保存字段
	 * @param params
	 * @returns {Promise<*>}
	 */
	batchSaveFiled: (params) => {
		return $http.$post(URL_PREFIX + "/batchSave", params, {});
	},

	/**
	 * 查询字段列表
	 * @param params
	 * @returns {Promise<*>}
	 */
	listByFeatureId: (params) => {
		return $http.$get(URL_PREFIX + "/listByFeatureId", params, {});
	},

	/**
	 * 批量逻辑删除
	 * @param {*} params 
	 * @returns 
	 */
	removeByFieldIds: (params) => {
		return $http.$post(URL_PREFIX + "/removeByFieldIds", params, {});
	}

}
